﻿<UserControl x:Class="OIDashboardView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="Auto" Height="Auto"
    xmlns:local="clr-namespace:EHaskins.Frc.Modules.Oi" >
    
    <StackPanel Orientation="Vertical">
    	<!--<Grid.RowDefinitions>
    		<RowDefinition Height="*"/>
    		<RowDefinition Height="*"/>
    	</Grid.RowDefinitions>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="*"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
        <local:JoystickPanel DataContext="{Binding Path=Joystick1}" Grid.Row="0" Grid.Column="0"/>
        <local:JoystickPanel DataContext="{Binding Path=Joystick2}" Grid.Row="1" Grid.Column="0"/>
        <local:JoystickPanel DataContext="{Binding Path=Joystick3}" Grid.Row="0" Grid.Column="1"/>
        <local:JoystickPanel DataContext="{Binding Path=Joystick4}" Grid.Row="1" Grid.Column="1"/>-->
        <TextBlock Text="OI Dashboard, by EHaskins.net"/>
        <ListBox ItemsSource="{Binding Path=Joysticks}"  HorizontalContentAlignment="Stretch"
                 ScrollViewer.VerticalScrollBarVisibility="Auto">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <local:JoystickPanel/>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </StackPanel>
</UserControl>
